package com.project.service;

import com.github.pagehelper.PageInfo;
import com.project.entity.Order1;
import com.project.entity.Stall;
import com.project.entity.Vehicle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StallService {
    public PageInfo<Stall> zt_selStallAll(Integer curentPage, Integer pageSize,String stall_size,String stall_code);

    public Stall zt_selStallById(Integer stall_id);

    public List<Vehicle> zt_selVehicle(Integer vehicle_uid);

    public int updateStall_stateAndOrder(Order1 order1);
    public List<Stall> zt_selStall();
    /**
     * 找到用户所选择小区的车位
     * */
    public List<Stall> getStallByUidAndManId(@Param("uid")Integer uid,@Param("manid") Integer manid);

    public Integer updateStall(Stall stall);

    public List<Stall> getAllStall();

    public Integer addStall(Stall stall);

    public PageInfo<Stall> getStallByUid(Integer uid,Integer currentPage,Integer pageSize);

    public Integer updateStallImg(Integer stallId,String imgUrl);

    public List<Stall> getStallByManagementId(Integer managementId);
}
